"""
Task 1.3: Saving and Loading JSON Files

Goal: Learn to save JSON data to a file and load it back.
"""

import json

# Data to save
data = {
    "userId": 102,
    "name": "Bob Brown",
    "email": "bob.brown@example.co.uk",
    "isActive": True
}

with open("user.json", "w") as file:
    json.dump(data, file)

with open("user.json", "r") as file:
    json_loaded = json.load(file)

print(f"the loaded data:{json_loaded}")

# TODO: Save the data to a file named "user.json" using json.dump()

# TODO: Load the data back from "user.json" using json.load() and print it
